Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        animator = GetComponent <Animator>();
        BehaviourMap mapping = GetComponent <BehaviourMap>();

        mapping.behaviourMap.Add(UnitController.TargetType.Ruin, GetType());
    }
Exemplo n.º 2
0
    // 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());
    }