摄像机区域的架构改动
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SpriteShadersUltimate
|
||||
{
|
||||
public class WindParallaxSSU : MonoBehaviour
|
||||
{
|
||||
float originalXPosition;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
originalXPosition = transform.position.x;
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
GetComponent<Renderer>().material.SetFloat("_WindXPosition", originalXPosition);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user