示例#1
0
    private void Awake()
    {
        mGhosts.Add(this);

        animator    = GetComponent <Animator>();
        environment = GameObject.FindObjectOfType <Environment>();

        colliders = GetComponents <Collider2D>();
        camera    = GameObject.FindObjectOfType <EnvironmentCamera>();
    }
示例#2
0
 private void Awake()
 {
     camera = GameObject.FindObjectOfType <EnvironmentCamera>();
 }
示例#3
0
 void OnValidate()
 {
     env = this;
     CameraMatch();
 }
示例#4
0
    void Start()
    {
        env = this;

        activeCam = GetActiveCam();
    }