Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        col      = GetComponent <BoxCollider2D>();
        animator = GetComponent <AnimatorScripts>();

        col.enabled = false;
        animator.PlayAnimation("Target_Aim", 0);

        StartCoroutine(Target());
    }
Пример #2
0
    public void Init()
    {
        action          = GetComponent <Boss6_Action>();
        move            = GetComponent <Boss6_Move>();
        controller      = GetComponent <Boss6_Controller>();
        animatorScripts = GetComponent <AnimatorScripts>();

        ChangeCommandList(0);

        StartCoroutine(Intro());
    }
Пример #3
0
    public void Init()
    {
        controller      = GetComponent <Boss6_Controller>();
        move            = GetComponent <Boss6_Move>();
        animatorScripts = GetComponent <AnimatorScripts>();
        audioManager    = AudioManager.instance;
        shooter         = GetComponent <ShootScripts>();

        player = controller.player;

        actionList.Add("ShootAtPlayer");
        actionList.Add("SweepShoot");
    }
Пример #4
0
 public void Init()
 {
     controller      = GetComponent <Boss6_Controller>();
     animatorScripts = GetComponent <AnimatorScripts>();
     audioManager    = AudioManager.instance;
 }
Пример #5
0
 void Awake()
 {
     image           = GetComponent <Image>();
     animator        = GetComponent <Animator>();
     animatorScripts = GetComponent <AnimatorScripts>();
 }