Exemple #1
0
 private void Awake()
 {
     if (pingPool.Equals(null))
     {
         GameObject.FindGameObjectWithTag("PingPool").GetComponent <PingPooling>();
     }
     gameObject.SetActive(false);
 }
Exemple #2
0
    private void Awake()
    {
        PlaneDistance = transform.parent.GetComponent <Canvas>().planeDistance;
        TargetCamera  = Camera.main;
        LineR         = transform.parent.GetComponentInChildren <LineRenderer>();
        LineR.enabled = false;

        layerMask = (-1) - ((1 << LayerMask.NameToLayer("WallCollider")));

        if (pingPool.Equals(null))
        {
            GameObject.FindGameObjectWithTag("PingPool").GetComponent <PingPooling>();
        }

        this.gameObject.SetActive(false);
    }
Exemple #3
0
    private void Awake()
    {
        PlaneDistance = transform.parent.GetComponent <Canvas>().planeDistance;
        TargetCamera  = Camera.main;
        LineR         = GetComponent <LineRenderer>();
        LineR.enabled = false;

        if (pingPool.Equals(null))
        {
            GameObject.FindGameObjectWithTag("PingPool").GetComponent <PingPooling>();
        }
        else
        {
            MakeCount    = pingPool.MakeCount;
            MakeMaxCount = pingPool.MakeMaxCount;
        }

        this.gameObject.SetActive(false);
    }