コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     end_game      = false;
     nextUpdate    = 1;
     end_clock     = 0;
     p1_swim_clock = 0;
     p2_swim_clock = 0;
     clock         = 0;
     p1            = p1_obj.GetComponent <PlayerOnTick>();
     p2            = p2_obj.GetComponent <PlayerOnTick>();
     trashy        = trashy_obj.GetComponent <TrashyT>();
     wall1         = wall1_obj.GetComponent <WallMech>();
     wall2         = wall2_obj.GetComponent <WallMech>();
     game_over     = false;
 }
コード例 #2
0
ファイル: CanonMech.cs プロジェクト: rohans922/seize-the-seas
    // Start is called before the first frame update
    void Start()
    {
        canon_timer   = 0;
        no_canon      = false;
        show_no_canon = false;

        orig      = transform.eulerAngles;
        activated = false;
        proj_rb   = projectile.GetComponent <Rigidbody>();
        player    = associated_player.GetComponent <PlayerOnTick>();

        UI       = UI_obj.GetComponent <UI>();
        opp_wall = opp_wall_obj.GetComponent <WallMech>();

        wall_hit = false;

        canon_cam   = GetComponentInChildren <Camera>(true);
        canon_trans = canon_cam.gameObject.transform;

        fired = false;

        timer = 0;
    }