Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     input     = GetComponent <PlayerInput_custom>();
     anim      = GetComponent <Animator>();
     movClass  = GetComponent <PlayerMovement_custom>();
     rigidBody = GetComponent <Rigidbody2D>();
 }
Ejemplo n.º 2
0
    /*
     * private Renderer rend;
     * public int colorMask = 10;
     */

    // Use this for initialization
    void Start()
    {
        anim = GetComponent <Animator>();

        //rend = GetComponent<Renderer>();
        //rend.material.shader = Shader.Find("Custom/HSVRangeShader");

        sprRend = GetComponent <SpriteRenderer>();

        currentHealth  = startingHealth;
        playerMovement = GetComponent <PlayerMovement_custom>();
    }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     anim     = GetComponent <Animator>();
     movClass = GetComponent <PlayerMovement_custom>();
 }