コード例 #1
0
    private void HitIndicator()
    {
        GameObject obj = gameUI.HitIndicatorPanel;

        HitIndicator hit = obj.GetComponent <HitIndicator>();

        hit.GetHit();
    }
コード例 #2
0
ファイル: LivingObject.cs プロジェクト: MelvinGr/Nebula
    public virtual void Awake()
    {
        spawnHealth     = health;
        spawnPosition   = transform.position;
        spawnTime       = Time.time;
        spawnSystemTime = System.DateTime.Now.Ticks;
        spawnCounter    = _spawnCounter++;

        hitIndicator = gameObject.GetComponent <HitIndicator>();
        if (hitIndicator == null)
        {
            hitIndicator = gameObject.AddComponent <HitIndicator>();
        }
    }
コード例 #3
0
    /*public override */ void Awake()
    {
        //base.Awake();

        health = 5;
        //spawnHealth = health;

        terrorVille  = transform.parent.parent.GetComponent <TerrorVille>();
        hitIndicator = gameObject.AddComponent <HitIndicator>();

        BoxCollider colider = gameObject.AddComponent <BoxCollider>();

        colider.isTrigger = true;
        colider.size      = new Vector3(colider.size.x * 1.5f, colider.size.y * 2f, colider.size.z * 1.5f);
    }
コード例 #4
0
ファイル: HitIndicator.cs プロジェクト: Joe4422/SandboxTools
 public HitIndicator()
 {
     Current    = this;
     StyleSheet = StyleSheet.FromFile("/ui/HitIndicator.scss");
 }
コード例 #5
0
ファイル: HitIndicator.cs プロジェクト: zct8002/dm98
 public HitIndicator()
 {
     Current = this;
     StyleSheet.Load("/ui/HitIndicator.scss");
 }