示例#1
0
    public override void initialize(World world, int id)
    {
        base.initialize(world, id);

        this.moveHelper = this.GetComponent <PathfindingAgent>();
        this.animator   = this.GetComponentInChildren <WorkerAnimator>();

        this.OnMouseExit(); // Hide Canvas
    }
 private void Awake()
 {
     this.sr       = this.GetComponent <SpriteRenderer>();
     this.animator = this.GetComponentInParent <WorkerAnimator>();
 }