// 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(); }
private void Awake() { anim = GetComponent <Animator>(); ac = GetComponentInParent <actorControl>(); }