Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     m           = GetComponent <MeshRenderer>();
     c           = m.material.color;
     data        = GameObject.FindGameObjectWithTag("MoneyData");
     playermoney = data.GetComponent <Player_Money>();
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     data        = GameObject.FindGameObjectWithTag("MoneyData");
     playermoney = data.GetComponent <Player_Money>();
     Turt1_up1.transform.position = transform.position;
     Turt1_up1.transform.rotation = transform.rotation;
 }
Example #3
0
 public Image Hpimage;  //血条,  Image 要用using UnityEngine.UI; 导入
 void Start()
 {
     rig             = GetComponent <Rigidbody>();
     _Targt          = GameObject.FindGameObjectWithTag("Player_Base");
     Distance_Vector = _Targt.transform.position - transform.position;
     //        HPimage = Resources.Load<Image>("Img/hp");
     data        = GameObject.FindGameObjectWithTag("MoneyData");
     playermoney = data.GetComponent <Player_Money>();
 }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     data        = GameObject.FindGameObjectWithTag("MoneyData");
     playermoney = data.GetComponent <Player_Money>();
 }
Example #5
0
 /*    float time = 0.2f;
  *  float timeGo = 0f;*/
 // Start is called before the first frame update
 void Start()
 {
     obj         = Resources.Load <GameObject>("Prefabs/Player/Player_Bullet");
     data        = GameObject.FindGameObjectWithTag("MoneyData");
     playermoney = data.GetComponent <Player_Money>();
 }
Example #6
0
 // Start is called before the first frame update
 void Start()
 {
     Enemy_Base_Healthy     = 10f;
     Enemyy_Base_Maxhealthy = 10f;
     playermoney            = GameObject.FindGameObjectWithTag("MoneyData").GetComponent <Player_Money>();
 }
Example #7
0
 // Start is called before the first frame update
 void Start()
 {
     data        = GameObject.FindGameObjectWithTag("MoneyData");
     playermoney = data.GetComponent <Player_Money>();
     //       HPimage = Resources.Load<Image>("Img/hp.png");
 }