コード例 #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());
    }
コード例 #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;
    }
コード例 #3
0
    // Start is called before the first frame update
    void Start()
    {
        BehaviourMap mapping = GetComponent <BehaviourMap>();

        mapping.behaviourMap.Add(UnitController.TargetType.CrawlTransformStation, GetType());
    }