Example #1
0
 // -------------------------------------------------------------------------------
 // Override Function
 public override void InitializeAgent()
 {
     academy  = FindObjectOfType <DefenderAcademy>();
     arena    = m_DefenderArena;
     rb       = transform.GetComponent <Rigidbody>();
     rayPer   = GetComponent <RayPerception3D>();
     isReload = false;
     weapon   = gameObject.GetComponent <WeaponController>();
     weapon.Init();
     shield = m_ShieldObject.GetComponent <ShieldAnimation>();
     shield.Init();
 }
Example #2
0
 public void Init(DefenderAgent _agent)
 {
     team  = _agent.GetTeam();
     arena = _agent.GetArena();
     if (team == TeamType.A)
     {
         gameObject.tag = "BulletA";
     }
     else if (team == TeamType.B)
     {
         gameObject.tag = "BulletB";
     }
 }