Example #1
0
    // Use this for initialization
    new void Start()
    {
        animator = this.gameObject.GetComponent <Animator>();
        Publish publisher = Publisher.GetInstance();

        publisher.Add(this);
        actionState = false;
        idle();
    }
    void Start()
    {
        factory = Singleton <GuardianFactory> .Instance;
        timer   = new TimeRecorder();
        Publish publisher = Publisher.GetInstance();

        publisher.Add(this);
        LoadResource();
    }