public void NoOwner() { owner = null; owner_hdl = null; StopAttacking(); ShowIndependant(); }
public void AssumeControl(GameObject obj, entity_handler obj_handler) { obj_handler.PlayerAssumeControl(); controlled = obj; controlled_handler = obj_handler; }
public void OnWeaponHit(GameObject obj) { entity_handler hdl = obj.GetComponent <entity_handler>(); if (hdl != null) { OnWeaponHitEntity(hdl); } }
// public GameObject brother; // public GameObject sister; // Start is called before the first frame update void Start() { controlled_handler = controlled.GetComponent <entity_handler>(); game_camera_handler = game_camera.GetComponent <camera_handler>(); brother_handler = brother.GetComponent <entity_handler>(); sister_handler = sister.GetComponent <entity_handler>(); Application.targetFrameRate = 60; }
public bool CanSeeEntity(entity_handler hdl) { return(CanSee(hdl.Position())); }
public void OnWeaponHitEntity(entity_handler hdl) { hdl.TakeDamage(ComputedDamage()); }
public bool CanAttackEntity(entity_handler hdl) { return(CanAttackPoint(hdl.Position())); }
// Start is called before the first frame update void Start() { handler = GetComponent <entity_handler>(); }
// Start is called before the first frame update void Start() { health_bar_handler = transform.Find("health_bar_canvas").GetComponent <bar_handler>(); base_entity_handler = GetComponent <entity_handler>(); }
public void SetOwner(GameObject obj) { owner = obj; owner_hdl = obj.GetComponent <entity_handler>(); }