Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        ac = GetComponent <actorControl>();
        GameObject model  = ac.model;
        GameObject sencer = transform.Find("sencer").gameObject;

        bm = Bind <BattleeManager>(sencer);
        wm = Bind <WeaponManager>(model);
        sm = Bind <StateManager>(gameObject);
        sm.test();
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     anim = GetComponent <Animator>();
     ac   = GetComponentInParent <actorControl>();
 }