예제 #1
0
 private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }
예제 #2
0
파일: Bullet.cs 프로젝트: modumarl/crox-net
    public void SetOwnerAgent(CombatAgent agent_)
    {
        agent = agent_;

        if (agent_.tag == "agent")
        {
            targetTag = "enermy";

            SetColor(Color.blue);
        }
        else
        {
            targetTag = "agent";
            SetColor(Color.red);
        }
    }
예제 #3
0
파일: Bullet.cs 프로젝트: modumarl/crox-net
 public void OnDisable()
 {
     agent = null;
 }