コード例 #1
0
 void Awake()
 {
     // Set up the references.
     timer        = waitTime;
     player       = GameObject.FindGameObjectWithTag("Player").transform;
     playerHealth = player.GetComponent <PlayerStats> ();
     enemyHealth  = GetComponent <BlobHealth> ();
 }
コード例 #2
0
ファイル: BlobController.cs プロジェクト: GambuzX/Boss_Fight
 // Start is called before the first frame update
 void Start()
 {
     animator          = GetComponentInChildren <Animator>();
     playerHealth      = GameObject.FindObjectOfType <PlayerHealth>();
     blobHealth        = GetComponent <BlobHealth>();
     projectilesParent = GameObject.Find("ProjectilesParent");
     attackLock        = false;
 }