Exemplo n.º 1
0
    public float camZ;     // desired z pos of camea

    void Awake()
    {
        S    = this;
        camZ = this.transform.position.z;
    }
Exemplo n.º 2
0
 void Awake()
 {
     S    = this;                           //this= the object that appeared right then. In this case the projectile
     camZ = transform.position.z;
 }