public float camZ; // desired z pos of camea void Awake() { S = this; camZ = this.transform.position.z; }
void Awake() { S = this; //this= the object that appeared right then. In this case the projectile camZ = transform.position.z; }