コード例 #1
0
 void Start()
 {
     Health = Player.GetComponent <scrHealth>();
 }
コード例 #2
0
ファイル: scrIncinerador.cs プロジェクト: etecaf-games/tars
 void Start()
 {
     PlayerP = GameObject.Find("Player");
     Vida    = PlayerP.GetComponent <scrHealth>();
     sp      = GetComponent <SpriteRenderer>();
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     AnimRobot = GetComponent <Animator>();
     Player    = GameObject.FindGameObjectWithTag("Player").GetComponent <scrHealth>();
     Robo      = GameObject.FindGameObjectWithTag("Player");
 }
コード例 #4
0
ファイル: scrPlayer.cs プロジェクト: etecaf-games/tars
 void Start()
 {
     RigidBody = GetComponent <Rigidbody2D>();
     Vida      = GetComponent <scrHealth>();
 }