コード例 #1
0
 // Start is called before the first frame update
 public override void Start()
 {
     base.Start(); //Our parent start method;
     Instance    = this;
     enemyHealth = 20f;
     manaReserve = enemyHealth * 2f;
     walkSpeed   = 1f;
     sController = GetComponent <Sorcerer_Controller>();
     player      = GameObject.FindGameObjectWithTag("Player");
 }
コード例 #2
0
 // Start is called before the first frame update
 public override void Start()
 {
     base.Start();
     sorcerer = GetComponent <Sorcerer_Pawn>();
     player   = FindObjectOfType <Player_Pawn>();
 }