private void Start()
 {
     Info = GameObject.FindGameObjectWithTag("InfoStorage").GetComponent <InformationStorage>();
     if (Info.BattleNumber > 0)
     {
         this.transform.position = Info.Position;
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     state          = BattleState.START;
     PlayerInfo     = GameObject.Find("InformationStorage").GetComponent <InformationStorage>();
     LoadManagement = PlayerInfo.gameObject.GetComponent <StartBattle>();
     StartCoroutine(SetUpBattle());
     magicUI.gameObject.SetActive(false);
 }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     info = GameObject.FindGameObjectWithTag("InfoStorage").GetComponent <InformationStorage>();
     if (info.EnemiesFought.Contains(this.name))
     {
         Destroy(this.gameObject);
     }
 }
Exemple #4
0
 public void StoreEnemy(InformationStorage info)
 {
     info.EnemyName      = EnemyName;
     info.EnemyElement   = element;
     info.EnemyLevel     = EnemyLevel;
     info.EnemyMaxHP     = EnemyMaxHP;
     info.EnemyDamage    = EnemyDamage;
     info.EnemyEXPToGive = EnemyEXPToGive;
 }
 // Start is called before the first frame update
 void Start()
 {
     info = GameObject.FindGameObjectWithTag("InfoStorage").GetComponent <InformationStorage>();
     if (info.EnemiesFought.Contains(this.name))
     {
         Destroy(this.gameObject);
     }
     movement       = new Vector2(this.transform.position.x, 0);
     FirstPosition  = new Vector2(this.transform.position.x + walkdistance, movement.y);
     SecondPosition = new Vector2(this.transform.position.x - walkdistance, movement.y);
 }