Example #1
0
 public void OnInteracted(SkeletonAI.Team team)
 {
     if (isDeath == false)
     {
         isDeath = true;
         InstantiateSkeleton(team);
     }
 }
Example #2
0
    void InstantiateSkeleton(SkeletonAI.Team team)
    {
        SkeletonAI skeleton = Instantiate(skeletonAIPrefab, spawnPoint.transform.position, Quaternion.identity).GetComponent <SkeletonAI>();

        skeleton.SetTeam(team);
        skeleton.SetStatsText();
        StartBornFX();
        GameManager.instance.allSkeletons.Add(skeleton);
    }
Example #3
0
 public void SetTarget(Transform target, SkeletonAI.Team myTeam, float bonusAmount)
 {
     this.target      = target;
     team             = myTeam;
     this.bonusAmount = bonusAmount;
 }