示例#1
0
    public override void Initialize(GameObject obj)
    {
        rcShoot = obj.GetComponent <RaycastShootTriggerable>();
        rcShoot.Initialize();

        rcShoot.gunDamage                = gunDamage;
        rcShoot.weaponRange              = weaponRange;
        rcShoot.hitForce                 = hitForce;
        rcShoot.laserLine.material       = new Material(Shader.Find("Unlit/Color"));
        rcShoot.laserLine.material.color = laserColor;
    }
示例#2
0
    public override void Initialize(GameObject obj)
    {
        rcShoot = obj.GetComponent <RaycastShootTriggerable>();
        rcShoot.Initialize();

        rcShoot.damage                 = damage;
        rcShoot.range                  = range;
        rcShoot.hitForce               = hitForce;
        rcShoot.rayLine.material       = new Material(Shader.Find("Unlit/Color"));
        rcShoot.rayLine.material.color = rayCastColor;
    }
示例#3
0
    public override void Initialize(GameObject gameObject)
    {
        rcShooter = gameObject.GetComponent <RaycastShootTriggerable>();

        if (rcShooter == null)
        {
            return;
        }

        rcShooter.range      = range;
        rcShooter.laserColor = laserColor;
        rcShooter.fireRate   = fireRate;

        rcShooter.Initialize();
    }
示例#4
0
 public override void Initialize(GameObject obj)
 {
     rcShoot = obj.GetComponent <RaycastShootTriggerable> ();
     rcShoot.Initialize();
 }