Exemplo n.º 1
0
    void Start ()
    {
        targetPos = target.position + Vector3.up * distance;
        transform.position = targetPos;

        pig = target.GetComponent<ThirdPersonPig>();
    }
Exemplo n.º 2
0
 void OnDisable()
 {
     instance = null;
 }
Exemplo n.º 3
0
 //singleton logic
 void OnEnable()
 {
     instance = this;
 }