// Start is called before the first frame update void Start() { animator = GetComponent <Animator>(); BehaviourMap mapping = GetComponent <BehaviourMap>(); mapping.behaviourMap.Add(UnitController.TargetType.Ruin, GetType()); }
// Start is called before the first frame update protected override void Start() { base.Start(); BehaviourMap mapping = GetComponent <BehaviourMap>(); mapping.behaviourMap.Add(UnitController.TargetType.Enemy, GetType()); animator = GetComponent <Animator>(); state = AttackUnitState.DEFENDING; }
// Start is called before the first frame update void Start() { BehaviourMap mapping = GetComponent <BehaviourMap>(); mapping.behaviourMap.Add(UnitController.TargetType.CrawlTransformStation, GetType()); }