Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        // Use callbacks to add them to the player
        SimplePlayer sp = GameObject.FindGameObjectWithTag("Player").GetComponent <SimplePlayer>();

        sp.SetListeners(OnChangeColour, OnAddColour);
        OnAddColour(0);
    }