Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        transform.gameObject.AddComponent <Funclass>();
        transform.GetComponent <Funclass>().action += EventFunclass;

        transform.GetComponent <Funclass>().GetSum(1, 2);
        //CallCaluculate(1, 2, fun.GetSum);
        //CallCaluculate(3, 4, fun.GetMulti);
        //SayMorning("贝贝", MorningChinese);
        //SayMorning("bess", MorningEnglish);
        morning += MorningChinese;
        morning += MorningEnglish;
        morning("Bess");
        StartCoroutine(sayMorning());
    }
Exemplo n.º 2
0
 public void SayMorning(string n, MorningDelegate morningDelegate)
 {
     morningDelegate(n);
 }