Example #1
0
    void Start()
    {
        animator = GetComponent <SpriteAnimator>();
        animator.animationSpeed = GameConstants.RECRUITMENT_UNIT_ANIMATION_SPEED;
        animator.AddChannel(redChannel, "red");
        animator.AddChannel(blueChannel, "blue");
        animator.AddChannel(greenChannel, "green");
        animator.AddChannel(yellowChannel, "yellow");

        ApplyColour();
    }