示例#1
0
 private void Start()
 {
     Invoke("DestroyProjectile", lifeTime);
     snekoMovement = GameObject.Find("Sneko").GetComponent <SnekoMovement>();
     player        = GameObject.Find("Player");
     if (player != null)
     {
         playerHealth   = GameObject.Find("Player").GetComponent <PlaceHolder_Health>();
         targetLocation = -(transform.position - player.transform.position);
     }
 }
示例#2
0
 void Start()
 {
     playerHealth = GameObject.Find("Player").GetComponent <PlaceHolder_Health>();
 }