示例#1
0
    protected override void Start()
    {
        base.Start();
        GameObject tempRef = Instantiate(thrallObject, transform.position, Quaternion.identity);

        thrallReference = tempRef.GetComponent <GeomancerThrall>();
        thrallReference.MasterReference = this;
    }
示例#2
0
    protected override void Update()
    {
        base.Update();
        if (TargetEntity == null)
        {
            TargetEntity = GameObject.FindGameObjectWithTag("Player").GetComponent <AttackableEntity>();
        }

        if (ThrallReference == null)
        {
            GameObject tempRef = Instantiate(thrallObject, transform.position, Quaternion.identity);
            thrallReference = tempRef.GetComponent <GeomancerThrall>();
            thrallReference.MasterReference = this;
        }
    }